<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/layouts/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
   <title>Try Bootstrap Online</title>
	<%@ include file="/WEB-INF/layouts/edit-header.jsp" %>

	<style type="text/css">
		body {
			/*background-color: #f3f3f4;
		    padding:20px;*/
		}
		.nav {
			background:#f3f3f4;
		}
		.tab-content {
			background:#FFF;
		}
		.nav-tabs>li>a {
			color:#999;
		}
	</style>

</head>
<body>
	<ul id="myTab" class="nav nav-tabs">
		<li class="active">
			<a href="#base-settings" data-toggle="tab">关于信息</a>
		</li>
	</ul>
	<div id="myTabContent" class="tab-content">
	   <div class="tab-pane fade in active" id="base-settings">
		  <form id="baseSettingsForm" class="form-horizontal">
				<div class="form-group form-group-first">
					<label for="companyName" class="col-sm-2 control-label">公司名称</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" name="companyName" id="companyName" placeholder="公司名称"
							maxlength="100" value="${appAboutSettings.companyName}" />
					</div>
			  </div>
			  <div class="form-group">
					<label for="companyAddress" class="col-sm-2 control-label">公司地址</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" name="companyAddress" id="companyAddress" placeholder="公司地址"
							   maxlength="100" value="${appAboutSettings.companyAddress}" />
					</div>
			  </div>
			  <div class="form-group">
				  <label for="companyTel" class="col-sm-2 control-label">服务电话</label>
				  <div class="col-sm-8">
					  <input type="text" class="form-control" name="companyTel" id="companyTel" placeholder="服务电话"
							 maxlength="100" value="${appAboutSettings.companyTel}" />
				  </div>
			  </div>
			  <div class="form-group">
				  <label for="companyEmail" class="col-sm-2 control-label">公司邮箱</label>
				  <div class="col-sm-8">
					  <input type="text" class="form-control" name="companyEmail" id="companyEmail" placeholder="公司邮箱"
							 maxlength="100" value="${appAboutSettings.companyEmail}" />
				  </div>
			  </div>
			  <div class="form-group">
				  <label for="companyUrl" class="col-sm-2 control-label">公司主页</label>
				  <div class="col-sm-8">
					  <input type="text" class="form-control" name="companyUrl" id="companyUrl" placeholder="公司主页"
							 maxlength="200" value="${appAboutSettings.companyUrl}" />
				  </div>
			  </div>
				<div class="form-group">
					<div class="col-sm-12" style="text-align: center;">
						<input type="reset" class="btn btn-default" value="默认" />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="submit" class="btn btn-primary" value="保存" />
					</div>
				</div>

			</form>
	   </div>
	</div>

	<script type="text/javascript">
		changeTitle('APP设置');
		$(function() {
			initForm('#baseSettingsForm','${ctx}/admin/app-settings/save-app-about-settings',function(r) {
				var resp = $.parseJSON(r);
				if(resp.code == 'OK') {
					topLayer.msg('保存成功', {icon: 1});
				}else {
					topLayer.msg(resp.message, {icon: 2});
				}
			});
		});
	</script>

</body>
</html>